package com.yunhe.policyfulfillment.authority.service;

import com.yunhe.common.exception.ArgumentErrorException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName FileUploadService
 * @Description TODO
 * @Author HeTao
 * @Date 2021/8/26 15:03
 * @Version 1.0
 **/
public interface FileUploadService {
    String uploadFile(MultipartFile file) throws IOException, ArgumentErrorException;

    void getFile(String filePath, HttpServletResponse response, HttpServletRequest request) throws ArgumentErrorException, IOException;

    void deleteFile(String url) throws ArgumentErrorException;
}
